%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 格式部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[10pt]{beamer}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{ifthen}
\usepackage{changepage}  % adjustwidth
\graphicspath{{./figures/}}
\setcounter{tocdepth}{1}
\AtBeginSection[]{\frame{\tableofcontents[currentsection,hideallsubsections]}}
\mode<presentation>{
    \usetheme{Madrid}
    \usefonttheme{professionalfonts}
    \usefonttheme[onlymath]{serif}
}
\date{}

% 调整有序和无序列表前符号的形状
% \setbeamertemplate{itemize items}[square]
% \setbeamertemplate{enumerate items}[square]
\newcommand{\mysquare}{\scalebox{0.6}{$\blacksquare$}}
\setbeamersize{
    description width=0.5cm,
    text margin left=1cm,
    text margin right=1cm
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 内容部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \newcommand\DocumentType{part2}
\newcommand\DocumentType{part3}

\author[]{Bin Meng}
\institute[]{\small Beijing Institute of Control Engineering}
\ifthenelse{\equal{\DocumentType}{part2}}{
    \title[]{
    {\large Chapter 1-5  Satellite Orbit Calculation, TT\&C Technology} \\
    {\normalsize Part 2 Satellite Attitude Determination and Control}}
}{}
\ifthenelse{\equal{\DocumentType}{part3}}{
    \title[]{
    {\large Chapter 1-5  Satellite Orbit Calculation, TT\&C Technology} \\
    {\normalsize Part 3 Satellite Orbit Calculation}}
}{}

\begin{document}
\frame{\titlepage}

\begin{frame}
\begin{center}\textcolor{blue}{\Large Outline}\end{center}
\tableofcontents
\end{frame}

\ifthenelse{\equal{\DocumentType}{part2}}{
    \input{part2en/sec1.tex}
    \input{part2en/sec2.tex}
    \input{part2en/sec3.tex}
    \input{part2en/sec4.tex}
    \input{part2en/sec5.tex}
    \input{part2en/sec6.tex}
}{}
\ifthenelse{\equal{\DocumentType}{part3}}{
    \input{part3en/sec1.tex}
    \input{part3en/sec2.tex}
    \input{part3en/sec3.tex}
    \input{part3en/sec4.tex}
}{}
\end{document}
